--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<BorlandProject>\r
+ <PersonalityInfo>\r
+ <Option>\r
+ <Option Name="Personality">Default.Personality</Option>\r
+ <Option Name="ProjectType"></Option>\r
+ <Option Name="Version">1.0</Option>\r
+ <Option Name="GUID">{FC095690-3F74-478C-9A62-933653FA0F05}</Option>\r
+ </Option>\r
+ </PersonalityInfo>\r
+ <Default.Personality>\r
+ \r
+ <Projects>\r
+ <Projects Name="GPSBabelGUI.exe">GPSBabelGUI.bdsproj</Projects>\r
+ <Projects Name="Targets">GPSBabelGUI.exe</Projects>\r
+ </Projects>\r
+ <Dependencies/>\r
+ </Default.Personality>\r
+</BorlandProject>\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<BorlandProject>\r
+ <PersonalityInfo>\r
+ <Option>\r
+ <Option Name="Personality">Delphi.Personality</Option>\r
+ <Option Name="ProjectType">VCLApplication</Option>\r
+ <Option Name="Version">1.0</Option>\r
+ <Option Name="GUID">{FD0CBDBD-6E28-44F5-B538-62E52DEF440B}</Option>\r
+ </Option>\r
+ </PersonalityInfo>\r
+ <Delphi.Personality>\r
+ <Source>\r
+ <Source Name="MainSource">GPSBabelGUI.dpr</Source>\r
+ </Source>\r
+ <FileVersion>\r
+ <FileVersion Name="Version">7.0</FileVersion>\r
+ </FileVersion>\r
+ <Compiler>\r
+ <Compiler Name="A">4</Compiler>\r
+ <Compiler Name="B">0</Compiler>\r
+ <Compiler Name="C">0</Compiler>\r
+ <Compiler Name="D">0</Compiler>\r
+ <Compiler Name="E">0</Compiler>\r
+ <Compiler Name="F">0</Compiler>\r
+ <Compiler Name="G">1</Compiler>\r
+ <Compiler Name="H">1</Compiler>\r
+ <Compiler Name="I">0</Compiler>\r
+ <Compiler Name="J">1</Compiler>\r
+ <Compiler Name="K">0</Compiler>\r
+ <Compiler Name="L">0</Compiler>\r
+ <Compiler Name="M">0</Compiler>\r
+ <Compiler Name="N">1</Compiler>\r
+ <Compiler Name="O">1</Compiler>\r
+ <Compiler Name="P">1</Compiler>\r
+ <Compiler Name="Q">0</Compiler>\r
+ <Compiler Name="R">0</Compiler>\r
+ <Compiler Name="S">0</Compiler>\r
+ <Compiler Name="T">0</Compiler>\r
+ <Compiler Name="U">0</Compiler>\r
+ <Compiler Name="V">0</Compiler>\r
+ <Compiler Name="W">0</Compiler>\r
+ <Compiler Name="X">1</Compiler>\r
+ <Compiler Name="Y">0</Compiler>\r
+ <Compiler Name="Z">1</Compiler>\r
+ <Compiler Name="ShowHints">False</Compiler>\r
+ <Compiler Name="ShowWarnings">False</Compiler>\r
+ <Compiler Name="UnitAliases">WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;</Compiler>\r
+ <Compiler Name="NamespacePrefix"></Compiler>\r
+ <Compiler Name="GenerateDocumentation">False</Compiler>\r
+ <Compiler Name="DefaultNamespace"></Compiler>\r
+ <Compiler Name="SymbolDeprecated">True</Compiler>\r
+ <Compiler Name="SymbolLibrary">True</Compiler>\r
+ <Compiler Name="SymbolPlatform">True</Compiler>\r
+ <Compiler Name="SymbolExperimental">True</Compiler>\r
+ <Compiler Name="UnitLibrary">True</Compiler>\r
+ <Compiler Name="UnitPlatform">True</Compiler>\r
+ <Compiler Name="UnitDeprecated">True</Compiler>\r
+ <Compiler Name="UnitExperimental">True</Compiler>\r
+ <Compiler Name="HResultCompat">True</Compiler>\r
+ <Compiler Name="HidingMember">True</Compiler>\r
+ <Compiler Name="HiddenVirtual">True</Compiler>\r
+ <Compiler Name="Garbage">True</Compiler>\r
+ <Compiler Name="BoundsError">True</Compiler>\r
+ <Compiler Name="ZeroNilCompat">True</Compiler>\r
+ <Compiler Name="StringConstTruncated">True</Compiler>\r
+ <Compiler Name="ForLoopVarVarPar">True</Compiler>\r
+ <Compiler Name="TypedConstVarPar">True</Compiler>\r
+ <Compiler Name="AsgToTypedConst">True</Compiler>\r
+ <Compiler Name="CaseLabelRange">True</Compiler>\r
+ <Compiler Name="ForVariable">True</Compiler>\r
+ <Compiler Name="ConstructingAbstract">True</Compiler>\r
+ <Compiler Name="ComparisonFalse">True</Compiler>\r
+ <Compiler Name="ComparisonTrue">True</Compiler>\r
+ <Compiler Name="ComparingSignedUnsigned">True</Compiler>\r
+ <Compiler Name="CombiningSignedUnsigned">True</Compiler>\r
+ <Compiler Name="UnsupportedConstruct">True</Compiler>\r
+ <Compiler Name="FileOpen">True</Compiler>\r
+ <Compiler Name="FileOpenUnitSrc">True</Compiler>\r
+ <Compiler Name="BadGlobalSymbol">True</Compiler>\r
+ <Compiler Name="DuplicateConstructorDestructor">True</Compiler>\r
+ <Compiler Name="InvalidDirective">True</Compiler>\r
+ <Compiler Name="PackageNoLink">True</Compiler>\r
+ <Compiler Name="PackageThreadVar">True</Compiler>\r
+ <Compiler Name="ImplicitImport">True</Compiler>\r
+ <Compiler Name="HPPEMITIgnored">True</Compiler>\r
+ <Compiler Name="NoRetVal">True</Compiler>\r
+ <Compiler Name="UseBeforeDef">True</Compiler>\r
+ <Compiler Name="ForLoopVarUndef">True</Compiler>\r
+ <Compiler Name="UnitNameMismatch">True</Compiler>\r
+ <Compiler Name="NoCFGFileFound">True</Compiler>\r
+ <Compiler Name="ImplicitVariants">True</Compiler>\r
+ <Compiler Name="UnicodeToLocale">True</Compiler>\r
+ <Compiler Name="LocaleToUnicode">True</Compiler>\r
+ <Compiler Name="ImagebaseMultiple">True</Compiler>\r
+ <Compiler Name="SuspiciousTypecast">True</Compiler>\r
+ <Compiler Name="PrivatePropAccessor">True</Compiler>\r
+ <Compiler Name="UnsafeType">False</Compiler>\r
+ <Compiler Name="UnsafeCode">False</Compiler>\r
+ <Compiler Name="UnsafeCast">False</Compiler>\r
+ <Compiler Name="OptionTruncated">True</Compiler>\r
+ <Compiler Name="WideCharReduced">True</Compiler>\r
+ <Compiler Name="DuplicatesIgnored">True</Compiler>\r
+ <Compiler Name="UnitInitSeq">True</Compiler>\r
+ <Compiler Name="LocalPInvoke">True</Compiler>\r
+ <Compiler Name="MessageDirective">True</Compiler>\r
+ <Compiler Name="CodePage"></Compiler>\r
+ </Compiler>\r
+ <Linker>\r
+ <Linker Name="MapFile">0</Linker>\r
+ <Linker Name="OutputObjs">0</Linker>\r
+ <Linker Name="GenerateHpps">False</Linker>\r
+ <Linker Name="ConsoleApp">1</Linker>\r
+ <Linker Name="DebugInfo">False</Linker>\r
+ <Linker Name="RemoteSymbols">False</Linker>\r
+ <Linker Name="GenerateDRC">False</Linker>\r
+ <Linker Name="MinStackSize">16384</Linker>\r
+ <Linker Name="MaxStackSize">1048576</Linker>\r
+ <Linker Name="ImageBase">4194304</Linker>\r
+ <Linker Name="ExeDescription"></Linker>\r
+ </Linker>\r
+ <Directories>\r
+ <Directories Name="OutputDir"></Directories>\r
+ <Directories Name="UnitOutputDir"></Directories>\r
+ <Directories Name="PackageDLLOutputDir"></Directories>\r
+ <Directories Name="PackageDCPOutputDir"></Directories>\r
+ <Directories Name="SearchPath"></Directories>\r
+ <Directories Name="Packages">vcl;rtl;vclx;dbrtl;adortl;vcldb;bdertl;vcldbx;teeui;teedb;tee;ibxpress;visualclx;visualdbclx;dsnap;vclactnband</Directories>\r
+ <Directories Name="Conditionals">MSWINDOWS</Directories>\r
+ <Directories Name="DebugSourceDirs"></Directories>\r
+ <Directories Name="UsePackages">False</Directories>\r
+ </Directories>\r
+ <Parameters>\r
+ <Parameters Name="RunParams"></Parameters>\r
+ <Parameters Name="HostApplication"></Parameters>\r
+ <Parameters Name="Launcher"></Parameters>\r
+ <Parameters Name="UseLauncher">False</Parameters>\r
+ <Parameters Name="DebugCWD"></Parameters>\r
+ <Parameters Name="Debug Symbols Search Path"></Parameters>\r
+ <Parameters Name="LoadAllSymbols">True</Parameters>\r
+ <Parameters Name="LoadUnspecifiedSymbols">False</Parameters>\r
+ </Parameters>\r
+ <Language>\r
+ <Language Name="ActiveLang"></Language>\r
+ <Language Name="ProjectLang">$00000000</Language>\r
+ <Language Name="RootDir"></Language>\r
+ </Language>\r
+ <VersionInfo>\r
+ <VersionInfo Name="IncludeVerInfo">True</VersionInfo>\r
+ <VersionInfo Name="AutoIncBuild">False</VersionInfo>\r
+ <VersionInfo Name="MajorVer">0</VersionInfo>\r
+ <VersionInfo Name="MinorVer">2</VersionInfo>\r
+ <VersionInfo Name="Release">21</VersionInfo>\r
+ <VersionInfo Name="Build">0</VersionInfo>\r
+ <VersionInfo Name="Debug">False</VersionInfo>\r
+ <VersionInfo Name="PreRelease">False</VersionInfo>\r
+ <VersionInfo Name="Special">False</VersionInfo>\r
+ <VersionInfo Name="Private">False</VersionInfo>\r
+ <VersionInfo Name="DLL">False</VersionInfo>\r
+ <VersionInfo Name="Locale">1033</VersionInfo>\r
+ <VersionInfo Name="CodePage">1252</VersionInfo>\r
+ </VersionInfo>\r
+ <VersionInfoKeys>\r
+ <VersionInfoKeys Name="CompanyName">GPSBabel Makers</VersionInfoKeys>\r
+ <VersionInfoKeys Name="FileDescription">GPSBabel Windows Frontend</VersionInfoKeys>\r
+ <VersionInfoKeys Name="FileVersion">0.2.21.0</VersionInfoKeys>\r
+ <VersionInfoKeys Name="InternalName"></VersionInfoKeys>\r
+ <VersionInfoKeys Name="LegalCopyright">(C) 2005-2008 Olaf Klein (o.b.klein@gpsbabel.org)</VersionInfoKeys>\r
+ <VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys>\r
+ <VersionInfoKeys Name="OriginalFilename">GPSBabelGUI.exe</VersionInfoKeys>\r
+ <VersionInfoKeys Name="ProductName">GPSBabel</VersionInfoKeys>\r
+ <VersionInfoKeys Name="ProductVersion">1.3.x</VersionInfoKeys>\r
+ <VersionInfoKeys Name="Comments"></VersionInfoKeys>\r
+ </VersionInfoKeys> <Excluded_Packages>\r
+ <Excluded_Packages Name="c:\program files (x86)\borland\bds\4.0\Bin\dclib100.bpl">Borland InterBase Express Components</Excluded_Packages>\r
+ <Excluded_Packages Name="c:\program files (x86)\borland\bds\4.0\Bin\dclIntraweb_80_100.bpl">Intraweb 8.0 Design Package for Borland Development Studio 2006</Excluded_Packages>\r
+ <Excluded_Packages Name="c:\program files (x86)\borland\bds\4.0\Bin\dclIndyCore100.bpl">Indy 10 Core Design Time</Excluded_Packages>\r
+ <Excluded_Packages Name="c:\program files (x86)\borland\bds\4.0\Bin\dclsmp100.bpl">Borland Sample Components</Excluded_Packages>\r
+ <Excluded_Packages Name="c:\program files (x86)\borland\bds\4.0\Bin\dclIndyProtocols100.bpl">Indy 10 Protocols Design Time</Excluded_Packages>\r
+ <Excluded_Packages Name="c:\program files (x86)\borland\bds\4.0\Bin\dcltee100.bpl">TeeChart Components</Excluded_Packages>\r
+ </Excluded_Packages>\r
+ </Delphi.Personality>\r
+ <ModelSupport>True</ModelSupport>\r
+</BorlandProject>\r
--$A-\r
+-$A4\r
-$B-\r
-$C-\r
-$D-\r
-M\r
-$M16384,1048576\r
-K$00400000\r
--LNc:\programme\borland\delphi4\Lib\r
+-LE"C:\Documents and Settings\Admin\My Documents\Borland Studio Projects\Bpl"\r
+-LN"C:\Documents and Settings\Admin\My Documents\Borland Studio Projects\Bpl"\r
-DMSWINDOWS\r
+-w-UNSAFE_TYPE\r
+-w-UNSAFE_CODE\r
+-w-UNSAFE_CAST\r
program GPSBabelGUI;\r
{\r
- Copyright (C) 2005-2007 Olaf Klein, o.b.klein@gpsbabel.org\r
+ Copyright (C) 2005-2008 Olaf Klein, o.b.klein@gpsbabel.org\r
\r
This program is free software; you can redistribute it and/or modify\r
it under the terms of the GNU General Public License as published by\r
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA\r
}\r
\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\filter\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\delphi\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\options\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\common\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\about\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\utils\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\main\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\gnugettext\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\gnugettextDx\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\GPSBabelGUI\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\select\default.txaPackage'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\default.txvpck'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\main\default.txvpck'}\r
+{%TogetherDiagram 'ModelSupport_GPSBabelGUI\GPSBabelGUI\default.txvpck'}\r
+\r
uses\r
gnugettext in 'gnugettext.pas',\r
gnugettextDx in 'gnugettextDx.pas',\r
{$ENDIF}\r
\r
Application.Initialize;\r
+ Application.Title := 'GPSBabelGUI-2';\r
Application.CreateForm(TfrmMain, frmMain);\r
Application.Run;\r
end.\r
locale\fr\LC_MESSAGES\delphi.mo \\r
locale\fr\LC_MESSAGES\default.mo \\r
locale\fr\LC_MESSAGES\gpsbabel.mo \\r
- locale\it\LC_MESSAGES\delphi.mo \\r
- locale\it\LC_MESSAGES\default.mo \\r
- locale\it\LC_MESSAGES\gpsbabel.mo \\r
locale\hu\LC_MESSAGES\delphi.mo \\r
locale\hu\LC_MESSAGES\default.mo \\r
- locale\hu\LC_MESSAGES\gpsbabel.mo\r
+ locale\hu\LC_MESSAGES\gpsbabel.mo \\r
+ locale\it\LC_MESSAGES\delphi.mo \\r
+ locale\it\LC_MESSAGES\default.mo \\r
+ locale\it\LC_MESSAGES\gpsbabel.mo\r
\r
.suffixes: .po\r
\r
rm -f locale\es\LC_MESSAGES\*.mo\r
rm -f locale\fr\LC_MESSAGES\*.mo\r
rm -f locale\hu\LC_MESSAGES\*.mo\r
+ rm -f locale\it\LC_MESSAGES\*.mo\r
\r
* Compiling from source *\r
-------------------------\r
\r
-Currently the gui is developed under Delphi 4. Other releases of Delphi are\r
-tested but are not used because of backward compatibility. If you want to help\r
-us and Delphi is not in your software collection, "Delphi 6 Personal Edition"\r
-would be the cheapest (or free) way.\r
-\r
-\r
-\r
+Currently the GUI is developed with Turbo Delphi 2006, a free release.\r
lbxTranslators.Items.Add(_('French') + ' ' + _('by') + ' Lilian Morinon');\r
lbxTranslators.Items.Add(_('Spanish') + ' ' + _('by') + ' Daniel Diaz');\r
lbxTranslators.Items.Add(_('Hungarian') + ' ' + _('by') + ' Sprok Bence');\r
+ lbxTranslators.Items.Add(_('Italian') + ' ' + _('by') + ' Michele Locati');\r
end;\r
\r
procedure TfrmAbout.lbURLMouseMove(Sender: TObject; Shift: TShiftState; X,\r
unit common;\r
\r
{\r
- Copyright (C) 2005-2007 Olaf Klein, o.b.klein@gpsbabel.org\r
+ Copyright (C) 2005-2008 Olaf Klein, o.b.klein@gpsbabel.org\r
\r
This program is free software; you can redistribute it and/or modify\r
it under the terms of the GNU General Public License as published by\r
public\r
Capas: Integer;\r
property Name : String read FName;\r
- property Description : String read FDescription;\r
+ property Description : String read FDescription write FDescription;\r
property Ext : String read FExt;\r
property ReadAny : Boolean read CanReadAny;\r
property WriteAny : Boolean read CanWriteAny;\r
2:\r
name := StrPas(cin);\r
3:\r
- ext := StrPas(cin);\r
+ begin\r
+ ext := StrPas(cin);\r
+ while (Pos('.', ext) <> 0) do\r
+ System.Delete(ext, Pos('.', ext), 1);\r
+ end\r
else begin\r
comment := StrPas(cin);\r
if (Length(comment) = 0) or (Length(name) = 0) then break;\r
gpsbabel_exe := SysUtils.ExtractFilePath(ParamStr(0)) + SGPSBabelExeFilename;\r
SGPSBabelGUIVersion := GetFileVersion(ParamStr(0));\r
//gpsbabel_ini := Open_gpsbabel_ini();\r
+ DecimalSeparator := '.';\r
\r
end.\r
unit filter;\r
\r
{\r
- Copyright (C) 2005-2007 Olaf Klein, o.b.klein@gpsbabel.org\r
+ Copyright (C) 2005-2008 Olaf Klein, o.b.klein@gpsbabel.org\r
\r
This program is free software; you can redistribute it and/or modify\r
it under the terms of the GNU General Public License as published by\r
; Script generated by the Inno Setup Script Wizard.\r
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!\r
\r
-#define Version "1.3.5"\r
-#define Release "-beta20070807"\r
+#define Version "1.3.6"\r
+#define Release "-beta20080514"\r
\r
[Setup]\r
AppName=GPSBabel\r
{\r
GPSBabelGUI main unit/formular\r
\r
- Copyright (C) 2005-2007 Olaf Klein, o.b.klein@gpsbabel.org\r
+ Copyright (C) 2005-2008 Olaf Klein, o.b.klein@gpsbabel.org\r
\r
This program is free software; you can redistribute it and/or modify\r
it under the terms of the GNU General Public License as published by\r
gnugettext, TypInfo, delphi, \r
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,\r
StdCtrls, Buttons, ExtCtrls,\r
- common, utils, ImgList, ActnList, Menus, ComCtrls, ToolWin;\r
+ common, utils, ImgList, ActnList, Menus, ComCtrls, ToolWin, ActnMan,\r
+ ActnColorMaps;\r
\r
type\r
TfrmMain = class(TForm)\r
pmnuFilter: TMenuItem;\r
btnFilter: TBitBtn;\r
btnProcess: TBitBtn;\r
+ XPColorMap1: TXPColorMap;\r
procedure FormShow(Sender: TObject);\r
procedure FormCreate(Sender: TObject);\r
procedure OpenButtonClick(Sender: TObject);\r
cbInputLang.ItemIndex := 0;\r
cbOutputLang.ItemIndex := 0;\r
\r
- cbWaypoints.Checked := StrToBool(ReadProfile(cbWaypoints.Tag));\r
- cbTracks.Checked := StrToBool(ReadProfile(cbTracks.Tag));\r
- cbRoutes.Checked := StrToBool(ReadProfile(cbRoutes.Tag));\r
+ try\r
+ cbWaypoints.Checked := StrToBool(ReadProfile(cbWaypoints.Tag));\r
+ except\r
+ cbWaypoints.Checked := True;\r
+ end;\r
+ try\r
+ cbTracks.Checked := StrToBool(ReadProfile(cbTracks.Tag));\r
+ except\r
+ cbTracks.Checked := False;\r
+ end;\r
+ try\r
+ cbRoutes.Checked := StrToBool(ReadProfile(cbRoutes.Tag));\r
+ except\r
+ cbRoutes.Checked := False;\r
+ end;\r
\r
acCopySelected.Enabled := False;\r
acSelectAll.Enabled := False;\r
else\r
OK := Cap.WriteAny;\r
if OK then\r
+ begin\r
+ if (Cap.Ext <> '') and (AnsiPos('.' + Cap.Ext, Cap.Description) = 0) then\r
+ begin\r
+ Cap.Description := Cap.Description + ' (.' + Cap.Ext + ')'; \r
+ end;\r
+ \r
Target.Items.AddObject(Cap.Description, Cap);\r
+ end;\r
end;\r
\r
s := ReadProfile(Target.Tag);\r
i: Integer;\r
cap : TCapability;\r
begin\r
+ edInputFile.SetFocus;\r
dlgFileOpen.Filter := '';\r
- dlgFileOpen.DefaultExt := '*.*';\r
-\r
- s:='';\r
- if (cbInputFormat.ItemIndex <> -1 ) then begin\r
- cap:= TCapability(cbInputFormat.Items.Objects[cbInputFormat.ItemIndex]);\r
- ext := cap.Ext;\r
- if (Length(ext)>0) then\r
- s := cbInputFormat.Text + '|*.' + ext + '|';\r
+ dlgFileOpen.DefaultExt := '';\r
+\r
+ s := '';\r
+ if (cbInputFormat.ItemIndex <> -1 ) then\r
+ begin\r
+ cap := FCaps.GetCapabilityByName(cbInputFormat.Text);\r
+ if (cap.Ext <> '') then\r
+ begin\r
+ s := Format('%s|*.%s|', [cbInputFormat.Text, cap.Ext]);\r
+ dlgFileOpen.DefaultExt := '*.' + cap.Ext;\r
+ end;\r
end;\r
s := s + _('All files (*.*)|*.*');\r
\r
dlgFileOpen.Filter := s;\r
+\r
+ if (dlgFileOpen.InitialDir = '') then\r
+ begin\r
+ dlgFileOpen.InitialDir := SysUtils.ExtractFilePath(dlgFileSave.FileName);\r
+ if (dlgFileOpen.InitialDir = '') then\r
+ dlgFileOpen.InitialDir := dlgFileSave.InitialDir;\r
+ if (dlgFileOpen.InitialDir = '') then\r
+ dlgFileOpen.InitialDir := GetCurrentDir;\r
+ end;\r
+\r
if not SELF.dlgFileOpen.Execute then Exit;\r
\r
edInputFile.Text := '';\r
for i := 0 to dlgFileOpen.Files.Count - 1 do\r
begin\r
s := dlgFileOpen.Files[i];\r
+ if (i = 0) then\r
+ dlgFileSave.InitialDir := ExtractFilePath(s);\r
if (s[1] <> '"') or (s[Length(s)] <> '"') then\r
s := AnsiQuotedStr(s, '"');\r
if (edInputFile.Text <> '') then edInputFile.Text := edInputFile.Text + ', ';\r
procedure TfrmMain.sbSaveFileClick(Sender: TObject);\r
var\r
s: string;\r
- cap : TCapability;\r
+ cap: TCapability;\r
begin\r
+ edOutputFile.SetFocus;\r
dlgFileSave.Filter := '';\r
- dlgFileSave.DefaultExt := '*.*';\r
+ dlgFileSave.DefaultExt := '';\r
\r
- s:='';\r
- if (cbOutputFormat.ItemIndex <> -1) then begin\r
- cap:=FCaps.Capability[cbOutputFormat.ItemIndex];\r
- s := Format('%s|%s',[cbOutputFormat.Text,cap.Ext,cap.Ext]);\r
+ s := '';\r
+ if (cbOutputFormat.ItemIndex <> -1) then\r
+ begin\r
+ cap := FCaps.GetCapabilityByName(cbOutputFormat.Text);\r
+ if (cap.Ext <> '') then\r
+ begin\r
+ s := Format('%s|*.%s|',[cbOutputFormat.Text, cap.Ext]);\r
+ dlgFileSave.DefaultExt := '*.' + cap.Ext;\r
+ end;\r
end;\r
s := s + _('All files|*.*');\r
\r
dlgFileSave.Filter := s;\r
+\r
+\r
+ if (dlgFileSave.InitialDir = '') then\r
+ begin\r
+ dlgFileSave.InitialDir := SysUtils.ExtractFilePath(dlgFileOpen.FileName);\r
+ if (dlgFileSave.InitialDir = '') then\r
+ dlgFileSave.InitialDir := dlgFileOpen.InitialDir;\r
+ if (dlgFileSave.InitialDir = '') then\r
+ dlgFileSave.InitialDir := GetCurrentDir;\r
+ end;\r
+ \r
if not SELF.dlgFileSave.Execute then Exit;\r
\r
edOutputFile.Text := dlgFileSave.FileName;\r
+ dlgFileSave.InitialDir := SysUtils.ExtractFilePath(dlgFileSave.FileName);\r
+\r
CheckInput;\r
end;\r
\r
sp: PChar;\r
cap : TCapability;\r
begin\r
+ memoOutput.SetFocus;\r
acLetsGo.Enabled := False;\r
try\r
acFinalizeDropDownsExecute(nil);\r
unit options;\r
\r
{\r
- Copyright (C) 2005-2007 Olaf Klein, o.b.klein@gpsbabel.org\r
+ Copyright (C) 2005-2008 Olaf Klein, o.b.klein@gpsbabel.org\r
\r
This program is free software; you can redistribute it and/or modify\r
it under the terms of the GNU General Public License as published by\r
unit select;\r
\r
{\r
- Copyright (C) 2005-2007 Olaf Klein, o.b.klein@gpsbabel.org\r
+ Copyright (C) 2005-2008 Olaf Klein, o.b.klein@gpsbabel.org\r
\r
This program is free software; you can redistribute it and/or modify\r
it under the terms of the GNU General Public License as published by\r
if (CompareText(s, 'fr') = 0) then sx := _('French') else\r
if (CompareText(s, 'en') = 0) then sx := _('English') else\r
if (CompareText(s, 'hu') = 0) then sx := _('Hungarian') else\r
+ if (CompareText(s, 'it') = 0) then sx := _('Italian') else\r
sx := '???';\r
\r
sx := Format('%s - %s', [s, sx]);\r
unit utils;\r
\r
{\r
- Copyright (C) 2005-2007 Olaf Klein, o.b.klein@gpsbabel.org\r
+ Copyright (C) 2005-2008 Olaf Klein, o.b.klein@gpsbabel.org\r
\r
This program is free software; you can redistribute it and/or modify\r
it under the terms of the GNU General Public License as published by\r